package com.gitee.fanx.rpc;

/**
 * @author fanhang
 */
public class RpcException extends RuntimeException {

	private int statusCode;
	private String message;
	private String detail;

	public RpcException() {
	}

	public RpcException(int statusCode, String message, String detail) {
		super(message, null, false, false);
		this.message = message;
		this.statusCode = statusCode;
		this.detail = detail;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
}
